package com.wwmz.strategy.pattern.promotion;

/**
 * 优惠策略方案已经有了，需要有一个类去创建某个优惠策略
 * Created by wumz on 2020/9/22 10:18
 */
public class PromotionActivity {
    private IPromotionStrategy strategy;

    public PromotionActivity(IPromotionStrategy strategy) {
        this.strategy = strategy;
    }

    public void execute(){
        this.strategy.doPromotion();
    }
}
